/*
 * Created with IDEA.
 * Description: A fully open-sourced high performance unibody close-loop driver for
 * Step-Motor, which was used in my DummyRobot project:
 * https://github.com/peng-zhihui/Dummy-Robot
 * Based on XDrive project: https://github.com/unlir/XDrive
 * @Author: Pengzhihui
 * @Date: ${DATE} ${TIME}
 *
 */

//
// Created by deng on 2022/12/25.
//

#ifndef MOTOR_S_TB67H450_STM32_H
#define MOTOR_S_TB67H450_STM32_H
#include "tb67h450_base.h"

class TB67H450 : public TB67H450Base
{
public:
    explicit TB67H450() : TB67H450Base()
    {}

private:
    void InitGpio() override;

    void InitPwm() override;

    void DacOutputVoltage(uint16_t _voltageA_3300mVIn12bits, uint16_t _voltageB_3300mVIn12bits) override;

    void SetInputA(bool _statusAp, bool _statusAm) override;

    void SetInputB(bool _statusBp, bool _statusBm) override;
};

#endif //MOTOR_S_TB67H450_STM32_H
